import axios from "@/axios"


//获取分页数据
export function getCategoryPageList(data) {
    return axios.post("/admin/category/list",data)
}

export function addCategory(data) {
    return axios.post("/admin/category/add",data)
}

//删除分类
export function deleteCategory(id) {
    return axios.post("/admin/category/delete", {id})
}

export function getCategorySelectList() {
    return axios.post("/admin/category/select/list")
}